Cybersecurity skills: specialist agents, orchestrator, crypto sandbox - #12
Merged
Conversation
…ndbox - New walletAuthAttack skill: IDOR probe on wallet/portfolio endpoints (no auth header) - Wire walletAuthAttack into skill-adapter and expose as LLM tool (wallet_auth_bypass) - Add overrideAgentId param to runSkill() so specialists can stamp their own ERC-8004 id - New specialist agent classes (SQL, APIKey, Wallet, Credential, Port, SSL) each with own agentId and capability tags - New orchestrator: dispatches all 6 specialists in parallel, compiles master report, triggers batch x402 payment, sends Telegram - /scan [url] command in Telegram bot routes to orchestrator; defaults to DEMO_TARGET_URL - New demo-target/sandbox.js: CryptoSandbox with 6 planted vulns (SQLi, exposed API keys, wallet IDOR, .env leak, user list, agent config leak)
…mmand Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/wallet/:id,/api/portfolioetc. without an auth header; flags any endpoint that returns balance, address, or transaction data unauthenticated. Crypto-native finding type, maps toCREDENTIAL_EXPOSURE / critical.SQLInjectionAgent,APIKeyAgent,WalletAuthAgent,CredentialAgent,PortScanAgent,SSLAgent): each has its own ERC-8004agentId,agentName, and capability tags.BaseSpecialistenforces the scope-grant check andoverrideAgentIdso every finding is stamped with the specialist's identity, not the master grant's.agent/orchestrator.ts): dispatches all 6 specialists in parallel against a target, compiles a master Telegram report, and fires a single batch x402 payment for the total findings. Stubs cleanly if merchant env is missing./scan [url]Telegram command: routes directly to the orchestrator. Falls back toDEMO_TARGET_URLif no URL is provided — one command triggers the full 2-min demo flow.demo-target/sandbox.js): deliberately vulnerable Express server themed as a crypto trading platform with 6 planted vulns, one per specialist: SQLi on/api/login, exposed API keys at/api/config, wallet IDOR at/api/wallet/:id,.envleak, user list exposure, and agent credential leak at/api/agent-config.Demo path
Files changed
src/skills/walletAuth.tssrc/skills/index.tsagent/specialists/base.tsagent/specialists/agents.tsagent/orchestrator.tsagent/llm/skill-adapter.tsoverrideAgentIdparamagent/llm/tools.tswallet_auth_bypassas LLM toolagent/telegram-bot.ts/scancommand + mergedeepLinkButtonsfrom maindemo-target/sandbox.jsNot touched
onchain/,shared/,scripts/, ERC-8004 registration, x402 client, scope-grant signing/verification — all unchanged.Made with Cursor